<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
  <head>
    <title>发布产品</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">

	<link rel="stylesheet" type="text/css" href="<%=basePath%>admin/css/global.css" />
	<link rel="stylesheet" type="text/css" href="<%=basePath%>admin/css/form.css" />
	<link rel="stylesheet" type="text/css" href="<%=basePath%>admin/css/page.css" />
	<link rel="stylesheet" type="text/css" href="<%=basePath%>admin/css/css3.css" />
	<link rel="stylesheet" type="text/css" href="<%=basePath%>admin/css/style.css" />
	<style type="text/css">
		div.wapper h2.pagerTitle {
			border-bottom:2px solid #C1D9FF;
		}
	</style>
		<script language="JavaScript">
			function onKeyDown()   
			{   
			if ( (event.altKey) || ((event.keyCode == 8) &&(event.srcElement.type != "text" &&event.srcElement.type != "textarea" &&event.srcElement.type != "password")) ||((event.ctrlKey) && ((event.keyCode == 78) || (event.keyCode == 82)) ) ||(event.keyCode == 116) )    
			{
			event.keyCode = 0;
			event.returnValue = false;
			}   
			}
			document.onkeydown = onKeyDown;
			function stop()
			{ //这个是禁用鼠标右键   
			    return false;
			}
			document.oncontextmenu=stop;
		</script>
  </head>
  
  <body>
   	<div class="wapper show tableContainer">
		<h2 class="pagerTitle tabTitle" ><a class="tab tabActive">批量导入产品</a></h2>
		<form id="productimport" name="productimport" enctype="multipart/form-data" method="post" action="saveExcel.action">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="40" colspan="2">&nbsp;</td>
  </tr>
  <tr>
    <td height="40" colspan="2">　　　　温馨提示：　1、请使用正规导入模板。　<a href="importExcep.action" >点此下载</a></td>
  </tr>
  <tr>
    <td height="40" colspan="2">　　　　　　　　　　2、请使用FTP将图片上传至服务器，图片命名规则:产品型号规格_序号.jpg，如AAA_1.jpg AAA_2.jpg
  </tr>
   <tr>
    <td height="40" colspan="2">　　　　　　　　　　3、导入产品数据前，务必先上传产品图片
  </tr>
  <tr>
    <td height="40" colspan="2"> </tr>
  <tr>
    <td width="100" height="40" align="right">请上传文件：</td>
    <td height="40"><label>
    <input type="hidden" name="testing" id="testing" value="0"> 
      <input type="file" name="file" />
    </label></td>
  </tr>
  <tr>
    <td width="100" height="40">&nbsp;</td>
    <td height="40"><label>
      <input type="button" id="testbutton" value=" 测试 " />　　　<input type="button" id="importbutton" value=" 导 入 " />
    </label></td>
  </tr>
  <tr>
    <td width="100" height="40">&nbsp;</td>
    <td >${rows}</td>
  </tr>
  <tr>
    <td width="100" height="40">&nbsp;</td>
    <td height="40">&nbsp;</td>
  </tr>
</table>
		</form>
		
   	</div>
   
   
   		<script type="text/javascript" src="<%=basePath%>/admin/js/jquery.js"></script>
		<script type="text/javascript" src="<%=basePath%>/admin/js/jqueryui.js"></script>
		<script type="text/javascript" src="<%=basePath%>/admin/js/simpleDialog.js"></script>
		<script type="text/javascript" >
		$("#testbutton").click(function(){
			$("#testing").val("1");
			productimport.submit();
		});
		$("#importbutton").click(function(){
			productimport.submit();
		});
		</script>

   
  </body>
</html>
